package com.atguigu.test.annotation;

import org.springframework.stereotype.Indexed;

import java.lang.annotation.*;

/**
 * @author zp
 * @version 1.0
 * @description: 自定义注解
 * @date 2022/12/24 20:32
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Indexed
public @interface LENGTH {
    int max() default 0;
    int min() default 0;
}
